package com.n9.qq.android.login.tlv;

import com.n9.qq.util.Util;

/**
 * @author ice
 * @since 2019/2/12 9:28
 */
public class Tlv0116 extends BaseTlv {
    int h = 0;
    int i = 0;

    public Tlv0116() {
        this.cmd = 0x0116;
    }

    /**
     * @param var1  final mMiscBitmap 524156
     * @param var2  final mSubSigMap 66560
     * @param var3  null
     * @return
     */
    public byte[] getData(int var1, int var2, long[] var3) {
        byte var4 = 0;
        long[] var5 = var3;
        if (var3 == null) {
            var5 = new long[0];
        }

        this.h = var5.length * 4 + 10;
        byte[] var6 = new byte[this.h];
        Util.int8_to_buf(var6, 0, this.i);
        Util.int32_to_buf(var6, 1, var1);
        Util.int32_to_buf(var6, 5, var2);
        Util.int8_to_buf(var6, 9, var5.length);
        var2 = 10;

        for(var1 = var4; var1 < var5.length; ++var1) {
            Util.int32_to_buf(var6, var2, (int)var5[var1]);
            var2 += 4;
        }

        return this.getBufData(var6);
    }

}
